home *** CD-ROM | disk | FTP | other *** search
/ Learn Microsoft Visual Basic 6.0 Now / Learn Microsoft Visual Basic 6.0 Now (Microsoft Press)(X03-58607)(1998).ISO / media / chap05 / b05a010.cc2 < prev    next >
Text File  |  1998-06-07  |  2KB  |  35 lines

  1. 0, In Visual Basic, the object-centered 
  2. 2, methodology you follow when building an 
  3. 4, application is called event-driven 
  4. 6, programming. In an event-driven program, you 
  5. 10, create objects on your form and encourage 
  6. 12, the user to use them in a meaningful way. 
  7. 16, When the user clicks an object on the 
  8. 17, form, an event is triggered in your 
  9. 19, program. Visual Basic reacts by calling the 
  10. 23, event procedure associated with the 
  11. 24, object that recognized the event. Each object 
  12. 28, in Visual Basic has a predefined set of 
  13. 30, events it can respond to. These events 
  14. 33, are listed for each object in the 
  15. 35, procedure drop-down list box in the Code 
  16. 37, window. You can write an event procedure for 
  17. 40, any of these events. And if an event 
  18. 42, occurs in the program, Visual Basic will 
  19. 45, execute the event procedure that is 
  20. 46, associated with it. Event procedures are the 
  21. 50, lifeblood of your program and form the 
  22. 53, core of its decision-making abilities. 
  23. 56, They can compare one or more options in a 
  24. 58, list box, process input, calculate new 
  25. 61, values, display output, and handle other 
  26. 65, important tasks. Events can even 
  27. 68, originate from the operating system itself. For 
  28. 71, example, you can ask Visual Basic to 
  29. 73, notify you when new electronic mail has 
  30. 75, arrived on your system. In sum, an 
  31. 79, event-driven program puts the user in charge, 
  32. 82, waits patiently for a response, and then 
  33. 85, processes the input predictably, the sure 
  34. 88, road to happy customers.
  35. 91, END